/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: HystrixClientWithFallBackFactory
 * @Package com.rx.service.base
 * @Description: 服务降级实现类
 * @author: 陈锦韬
 * @date: 2020\4\20 0020
 * @version V1.0
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
package com.rx.zuul.service.impl;

import com.rx.core.common.SecretInfo;
import com.rx.zuul.bean.LoginInfoFromUua;
import com.rx.zuul.service.FeignLoginService;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: Administrator
 * @Description: 服务降级实现类
 * @date: 2020\4\20 0020
 */

public class HystrixClientWithFallBackFactory implements FeignLoginService {
    @Override
    public LoginInfoFromUua getToken(@RequestParam("client_id") String clientId,
                                     @RequestParam("client_secret") String clientSecret,
                                     @RequestParam("grant_type") String grantType,
                                     @RequestParam("code") String code,
                                     @RequestParam("redirect_uri") String redirectUri,
                                     @RequestParam("username") String username,
                                     @RequestParam("password") String password){
        return null;
    }

    @Override
    public SecretInfo secret() {
        LoginServiceImpl.CLIENT_SECRET = "";
        return null;
    }

}
